#include <iostream>
using namespace std;

class T {
	private:
			static T t;
			int val;
	public:
			T(int v) : val(v) {};
			const T& operator+(const T& op1){
				t.val=val+op1.val;
				return t;
			}

			void print(){
				cout << val << endl;
			}
};

T T::t(0); // initialize the static member

int main() {

	T t1(5), t2(6);
	T t3=t1+t2;

	t3.print();

	return 0;
}
